import {
  get,
  post,
  postjson,
  postFormData,
  deleteReq,
  deleteJson,
  put, putjson
} from './RequestUnit'
import { authTokenAuthorization } from 'src/config/index'

export const REQUEST_SUCCEED = 'succeed'
export const REQUEST_ERROR = 'error'
/* user-info-controller 用户基本信息 begin */
/* 登录获取验证码 */
export const getAuthSmsCode = ({ params }) => {
  return post({ url: 'auth/smscode', params })
}
/* 登录 */
export const getAuthToken = ({ params, headers }) => {
  headers = {
    ...headers,
    Authorization: authTokenAuthorization
  }
  return post({ url: 'auth/token', params, headers })
}
/* 修改手机号 */
export const mobileChange = ({ params }) => {
  return postjson({ url: 'auth/mobile/change', params })
}
/* 根据UserId获取C端用户 */
export const getUserInfoByUserId = ({ params }) => {
  return get({ url: 'userInfo/getUserInfoByUserId', params })
}
/* 个人中心数量展示 */
export const myCenterNumbers = ({ params, headers }) => {
  return post({ url: 'userInfo/myCenterNumbersV1', params, headers })
}
/* 根据UserId获取B端用户 */
export const getUserInfoForB = ({ params }) => {
  return get({ url: 'userInfo/getUserInfoForB', params })
}
/* 保存C端用户 */
export const saveUserInfoToC = ({ params }) => {
  return post({ url: 'userInfo/saveUserInfoToC', params })
}
/* 保存B端用户 */
export const saveUserInfoToB = ({ params }) => {
  return post({ url: 'userInfo/saveUserInfoToB', params })
}
/* user-info-controller 用户基本信息 end */

/* common-controller 基本服务 begin */
/* 上传图片 */
export const uploadImage = ({ params }) => {
  return postFormData({ url: 'upload/image', params })
}
/* 行业分类树 */
export const getIndustryCategory = ({ params }) => {
  return post({ url: 'common/getIndustryCategory', params })
}
/* 首页定位 */
export const cityPositioning = ({ query }) => {
  return new Promise((resolve, reject) => {
    post({ url: 'map/positioning', query }).then(res => {
      resolve({
        ...res,
        data: res.data.replace(/市/, '')
      })
    }).catch(error => {
      reject(error)
    })
  })
}
/* 城市列表 */ // useless
export const getCityList = ({ params }) => {
  return post({ url: 'map/getCityList', params })
}
/* 添加城市记录 */
export const insertCityHistory = ({ query }) => {
  return post({ url: 'map/insertCityHistory', query })
}
/* 用户城市搜索记录 */
export const getCityHistory = ({ params }) => {
  return post({ url: 'map/getCityHistory', params })
}
/* 根据城市名称获取区域列表 */
export const getAreaListByCityName = ({ params }) => {
  return post({ url: 'map/getAreaListByCityName', params })
}
/* 首页岗位列表 */
export const homePostList = ({ params }) => {
  return post({ url: 'post/homePostList', params })
}
/* 首页推荐岗位 */
export const recommendPost = ({ params }) => {
  return post({ url: 'post/recommendPost', params })
}
/* 岗位分享 */
export const sharePost = ({ params }) => {
  return post({ url: 'post/postShare', params })
}
/* 岗位收藏 */
export const collectionPost = ({ params }) => {
  return post({ url: 'post/collectionPost', params })
}
/* 岗位取消收藏 */
export const cancelCollectionPost = ({ params }) => {
  return post({ url: 'post/cancelCollectionPost', params })
}
/* 岗位收藏记录 */
export const postCollectionList = ({ params, headers }) => {
  return post({ url: 'post/postCollectionList', params, headers })
}
/* 在招职位分类 */
export const inRecruitPostCategory = ({ headers, params }) => {
  return post({ url: 'post/inRecruitPostCategory', headers, params })
}
/* 在招职位分类 */
export const inRecruitPostNameCategoryList = ({ headers, params }) => {
  return post({ url: 'post/inRecruitPostNameCategoryList', headers, params })
}
/* 企业在招职位信息 */
export const companyInRecruitPostInfo = ({ headers, params }) => {
  return post({ url: 'post/companyInRecruitPostInfo', headers, params })
}
/* 修改默认岗位 */
export const updatePostDefault = ({ headers, params }) => {
  return post({ url: 'post/updatePostDefault', headers, params })
}
/* 沟通会话岗位卡片 */
export const talentPostCard = ({ headers, params }) => {
  return post({ url: 'post/talentPostCard', headers, params })
}
/* 首页轮播图 */
export const homeBannerList = (params) => {
  return post({ url: 'common/homeBannerList', params })
}
/* 查询屏蔽字 */
export const getBlockWords = () => {
  return post({ url: 'common/getBlockWords', params: {} })
}
/* common-controller 基本服务 end */

/* user-archive-controller 简历基本信息 begin */
/* 获取简历收藏信息 */
export const getArchiveInfo = ({ params }) => {
  return get({ url: 'userArchive/getArchiveInfo', params })
}
/* 新增简历收藏信息 */
export const insertArchiveCollection = ({ params }) => {
  return post({ url: 'userArchive/insertArchiveCollection', params })
}
/* 批量删除简历 */
export const removeArchiveCollection = ({ params }) => {
  return deleteReq({ url: 'userArchive/removeArchiveCollection', params })
}
/* 查看简历是否被收藏 */
export const findUserArchiveByArchiveId = ({ params }) => {
  return post({ url: 'userArchive/findUserArchiveByArchiveId', params })
}
/* 查看简历收藏列表 */
export const findUserArchiveByUserId = ({ params }) => {
  return put({ url: 'userArchive/findUserArchiveByUserId', params })
}
/* 新增简历基本信息 */
export const insertUserArchiveInfo = ({ params }) => {
  return post({ url: 'userArchive/insertUserArchiveInfo', params })
}
// 根据用户ID获取简历详情
export const getUserArchiveBundle = ({ params }) => {
  return get({ url: 'userArchive/getUserArchiveBundleByUserId', params })
}
// 根据用户ID获取简历基本信息
export const getUserArchiveInfo = ({ params }) => {
  return post({ url: 'userArchive/getUserArchiveInfo', params })
}
// 简历搜索 过滤屏蔽的人才
export const queryArchive = ({ params }) => {
  return post({ url: '/userArchive/queryArchiveByUserId', params })
}
/* 添加求职意愿 */
export const addJobHunting = ({ params }) => {
  return post({ url: 'userArchiveHunting/addJobHunting', params })
}
/* 修改求职意向 */
export const editJobHunting = ({ params }) => {
  return put({ url: 'userArchiveHunting/editJobHunting', params })
}
/* 根据Id删除指定的求职意向 */
export const delJobHunting = ({ params }) => {
  return get({ url: 'userArchiveHunting/delJobHunting', params })
}
/* 修改求职状态 */
export const updateJobStatus = ({ params }) => {
  return get({ url: 'userArchive/updateJobStatus', params })
}
/* 获取自我评价模板 */
export const findIntroTemp = () => {
  return get({ url: 'userArchive/findIntroTemp' })
}
/* 编辑自我评价 */
export const updateSelfEvaluation = ({ params }) => {
  return put({ url: 'userArchive/updateSelfEvaluation', params })
}

/**
 * 教育信息
 */
/* 删除教育信息  */
export const delEducation = ({ params }) => {
  return deleteReq({ url: 'userArchiveEducation/delEducation', params })
}
/* 获取教育信息单独每一条  */
export const getEducationById = ({ params }) => {
  return get({ url: 'userArchiveEducation/getEducationById', params })
}
/* 获取教育信息个人所有的  */
export const getUserArchiveEducation = ({ params }) => {
  return get({ url: 'userArchiveEducation/getUserArchiveEducation', params })
}
/* 添加教育信息  */
export const insertEducation = ({ params }) => {
  return post({ url: 'userArchiveEducation/insertEducation', params })
}
/* 修改教育信息  */
export const updateEducation = ({ params }) => {
  return put({ url: 'userArchiveEducation/updateEducation', params })
}
/* 查询专业信息  */
export const findProfession = ({ params }) => {
  return get({ url: 'userArchiveEducation/findProfession', params })
}
/* 查询学校信息  */
export const findSchool = ({ params }) => {
  return get({ url: 'userArchiveEducation/findSchool', params })
}

/**
 * 工作经历信息
 */
/* 删除工作经历  */
export const delWork = ({ params }) => {
  return deleteReq({ url: 'userArchiveWork/delWork', params })
}
/* 获取指定的工作经验  */
export const getUserWorkModelById = ({ params }) => {
  return get({ url: 'userArchiveWork/getUserWorkModelById', params })
}
/* 获取工作经验  */
export const getUserArchiveWork = ({ params }) => {
  return get({ url: 'userArchiveWork/getUserArchiveWork', params })
}
/* 添加工作经验  */
export const insertWork = ({ params }) => {
  return post({ url: 'userArchiveWork/insertWork', params })
}
/* 修改工作经验  */
export const updateWork = ({ params }) => {
  return put({ url: 'userArchiveWork/updateWork', params })
}

/**
 * 图片信息
 */
/* 获取所有图片 */
export const getUserArchiveImg = ({ params }) => {
  return get({ url: 'userArchiveImg/getUserArchiveImg', params })
}
/* 添加图片 */
export const insertImg = ({ params }) => {
  return post({ url: 'userArchiveImg/insertImg', params })
}
/* 删除图片 */
export const delImg = ({ params }) => {
  return deleteReq({ url: 'userArchiveImg/delImg', params })
}
/* 根据ID获取指定图片 */
export const getArchiveImgByID = ({ params }) => {
  return get({ url: 'userArchiveImg/getArchiveImgByID', params })
}

/* user-archive-controller 简历基本信息 end */
/* B 招聘者个人中心  */
export const operatorCenterInfo = ({ headers }) => {
  return post({ url: 'operator/operatorCenterInfo', headers })
}
/* B 根据关键字查询天眼查企业列表  */
export const companyListByKeyword = ({ params }) => {
  return post({ url: 'tianYanCha/companyListByKeyword', params })
}
/* B 根据企业名称判断企业是否存在  */
export const companyExist = ({ params }) => {
  return post({ url: 'company/exist', params })
}
/* B 申请创建公司 */
export const insertCompany = ({ params }) => {
  return post({ url: 'company/insertCompany', params })
}
/* B 用户是否有公司创建申请 */
export const checkUserHaveCompanyApply = ({ params }) => {
  return post({ url: 'company/checkUserHaveCompanyApply', params })
}
// 申请已通知
export const companyApplyNoticed = ({ params }) => {
  return post({ url: 'company/applyNoticed', params })
}
// 企业主页信息 //todo
export const companyFamousHomeInfo = ({ params, query }) => {
  return post({ url: 'company/famousHomeInfo', params })
}
// 企业详细信息
export const getCompanyDetail = ({ params, query }) => {
  return post({ url: 'company/getCompanyDetail', params })
}
// 我的企业基本信息
export const myCompanyBaseInfo = ({ headers, query }) => {
  return post({ url: 'company/myCompanyBaseInfo', headers })
}

// 查询企业主管理员信息
export const getMasterSearch = ({ params }) => {
  return post({ url: 'operator/masterSearch', params })
}
// 查看我的同事
export const getOperatorWorkmates = ({ params, query }) => {
  return post({ url: 'operator/workmates', headers: params })
}
// 申请加入该公司招聘者
export const getOperatorApplyOperator = ({ headers, params }) => {
  return post({ url: 'operator/applyOperator', headers, params })
}
// 待解绑人员
export const waitUnbindOperatorList = ({ params }) => {
  return post({ url: 'operator/waitUnbindOperatorList', params })
}
// operator/applyComeInOperatorList  申请加入公司人员列表
export const getApplyComeInOperatorList = ({ headers, params }) => {
  return post({ url: 'operator/applyComeInOperatorList', headers, params })
}
// 管理员转让 operator/transferMaster
export const operatorTransferMaster = ({ headers, params }) => {
  return post({ url: 'operator/transferMaster', headers, params })
}
// operator/unbindOperator 管理员解绑公司成员接口
export const operatorUnbindOperator = ({ headers, params }) => {
  return post({ url: 'operator/unbindOperator', headers, params })
}
// operator/unbindCompany 公司员工自解绑接口
export const unbindCompany = ({ headers }) => {
  return post({ url: 'operator/unbindCompany', headers })
}
// post/companyInRecruitPost  企业在招职位
export const companyInRecruitPost = ({ params }) => {
  return post({ url: 'post/companyInRecruitPost', params })
}
// 名企在招职位
export const famousInRecruitPost = ({ params, query }) => {
  return post({ url: 'post/famousInRecruitPost', params })
}
// company/updateCompanyInfo 修改企业信息
export const updateCompanyInfo = ({ params }) => {
  return post({ url: 'company/updateCompanyInfo', params })
}

/* 名企接口 begin */
// famous/homeFamousList 首页名企
export const homeFamousList = ({ params }) => {
  return post({ url: 'famous/homeFamousList', params })
}
// 申请已通知
export const goodPostFamousList = ({ params }) => {
  return post({ url: '/famous/goodPostFamousList', params })
}
// homeIndustryCategory 首页行业分类
export const homeIndustryCategory = ({ params }) => {
  return post({ url: '/post/homeIndustryCategory', params })
}
// famous/allFamousList 全部名企
export const allFamousList = ({ params }) => {
  return post({ url: 'famous/allFamousList', params })
}
// famous/applyFamous 申请名企
export const applyFamous = ({ params }) => {
  return post({ url: 'famous/applyFamous', params })
}
// famous/applyFamousState 名企申请状态
export const applyFamousState = ({ params, headers }) => {
  return post({ url: 'famous/applyFamousState', params, headers })
}
// famous/updateFamous 修改名企申请信息
export const updateFamous = ({ params }) => {
  return post({ url: 'famous/updateFamous', params })
}
/* 名企接口 end */
/* 会员接口 begin */
// member/getMemberInfoList 查询会员权益信息
export const getMemberInfoList = ({ params }) => {
  return post({ url: 'member/getMemberInfoList', params })
}
// member/getMemberInfoList 会员种类列表
export const getMemberTypeList = ({ params }) => {
  return post({ url: 'member/getMemberTypeList', params })
}
// iapList 内购列表
export const iapList = ({ params }) => {
  return post({ url: 'pay/iapList', params })
}
// pay/pay支付
export const memberPay = ({ params }) => {
  return post({ url: 'pay/pay', params })
}
// pay/myOrderList我的订单列表
export const myOrderList = ({ params }) => {
  return post({ url: 'pay/myOrderList', params })
}
// pay/iosValidate ios内购验证
export const iosPayValidate = ({ params, headers }) => {
  return post({ url: 'pay/iosValidate', params, headers })
}
/* 会员接口 end */

// 网易云IM聊天ID注册
export const createWYAccountRequest = params => {
  return postjson({ url: 'im/wyAccount', params })
}
// 网易云IM用户信息更新
export const updateWYinfoRequest = params => {
  return postjson({
    url: 'im/wyUpdateUinfo',
    params
  })
}
/**
 * 岗位当前状态 发布岗位后 IM消息是否发送成功
 */
export const postMessageStateRequest = params => {
  return post({
    url: 'post/postMessageState',
    params
  })
}

/**
 * 岗位id删除岗位消息 前端删除消息成功后 通知后端删除成功
 */
export const postMessageDeletedByPostIdRequest = params => {
  return post({
    url: 'post/postMessageDeletedByPostId',
    params
  })
}

/**
 * 未删除岗位消息会话 查询需要删除的IM会话
 */
export const notDeletedPostSessionRequest = params => {
  return post({
    url: 'post/notDeletedPostSession',
    params
  })
}

/**
 * 用户id删除岗位消息 删除完成后
 */
export const postMessageDeletedByUserIdRequest = params => {
  return post({
    url: 'post/postMessageDeletedByUserId',
    params
  })
}

// 记录聊天发起信息保存
export const saveChatInfoRequest = (params) => {
  return post({
    url: 'im/saveChatInfo',
    params
  })
}
// 推送接口
export const pushMsgImRequest = ({ params }) => {
  return get({ url: 'im/pushMsgIm', params })
}

/* B端首页人才列表 */
export const homePersonRequest = ({ params }) => {
  return postjson({ url: 'userArchive/queryArchiveForPage', params })
}

// 岗位推荐标题
export const postRecommendTitle = ({ params }) => {
  return post({ url: 'post/postRecommendTitle', params })
}
// 岗位推荐列表
export const postRecommendList = () => {
  return post({ url: 'post/postRecommendList' })
}
// post/myPostList 兼职岗位列表
export const MyPostList = ({ params, headers }) => {
  return post({ url: 'post/myPostList', params, headers })
}
// post/getPostDetail 岗位详情
export const getPostDetail = ({ params }) => {
  return post({ url: 'post/getPostDetail', params })
}
// post/blackPost 岗位详情
export const blackPost = ({ params }) => {
  return post({ url: 'post/blackPost', params })
}
// 屏蔽人才
export const blackUser = ({ params }) => {
  return post({ url: '/userArchive/insertShieldUser', params })
}
// post/publishPost // 岗位发布
export const PublishPost = ({ params, headers = {} }) => {
  return postjson({ url: 'post/publishPost', params, headers })
}
// post/submitPutawayApply // 提交岗位申请
export const submitPutawayApply = ({ params }) => {
  return post({ url: 'post/submitPutawayApply', params })
}
// post/setTop // 刷新岗位
export const setTop = ({ params }) => {
  return post({ url: 'post/setTop', params })
}
// post/updateState 上下架接口
export const updateState = ({ params }) => {
  return post({ url: 'post/updateState', params })
}

// post/deletePost 删除岗位
export const deletePost = ({ params }) => {
  return post({ url: 'post/deletePost', params })
}
// post/submitPutawayApply 请求上架
export const updatePost = ({ params }) => {
  return postjson({ url: 'post/updatePost', params })
}
// operator/auditApplyOperator 员工审核
export const auditApplyOperator = ({ params }) => {
  return post({ url: 'operator/auditApplyOperator', params })
}
// company/companyWelfareTree 企业福利待遇树
export const companyWelfareTree = () => {
  return post({ url: 'company/companyWelfareTree' })
}
// company/deleteCompanyWorkLocation 删除公司工作地点
export const deleteCompanyWorkLocation = ({ params }) => {
  return post({ url: 'company/deleteCompanyWorkLocationByIds', params })
}
// https://restapi.amap.com/v3/place/text?parameters // 搜索
export const getLocationsText = ({ params }) => {
  return get({
    url: 'https://restapi.amap.com/v3/place/text',
    params: {
      ...params,
      key: '73a60cdd9e0e8122001377421e0eab14'
    }
  })
}
// https://restapi.amap.com/v3/place/around?parameters 通过经纬度获取详细地址
export const getLocationsAround = ({ params }) => {
  return get({
    url: 'https://restapi.amap.com/v3/place/around',
    params: {
      ...params,
      key: '73a60cdd9e0e8122001377421e0eab14'
    }
  })
}
// company/getCompanyWorkLocationList   岗位模块企业工作地点列表
export const getCompanyWorkLocationList = ({ headers }) => {
  return post({ url: 'company/getCompanyWorkLocationList', headers })
}
// company/insertCompanyWorkLocation 添加公司工作地点
export const insertCompanyWorkLocation = ({ params }) => {
  return post({ url: 'company/insertCompanyWorkLocation', params })
}
// 查询剩余免费发布岗位次数
export const searchPublishPostFreeNumber = ({ params }) => {
  return post({ url: 'member/searchPublishPostFreeNumber', params })
}
// member/rights 企业会员状态
export const getCompanyMemberInfo = ({ params }) => {
  return post({ url: 'right/getCompanyMemberInfo', headers: params })
}
// 获取企业权益信息
export const companyRightInfo = ({ headers }) => {
  return post({ url: 'right/companyRightInfo', headers })
}
// userInfo/getTalentTalkList 沟通历史B
export const getTalentTalkList = ({ params }) => {
  return get({ url: 'userInfo/getTalentTalkListV1', params })
}
export const getChatForCList = ({ params, headers }) => {
  return get({ url: 'userInfo/getChatForCListV1', params, headers })
}
// deleteChatByIds 删除
export const deleteChatByIds = ({ params }) => {
  return deleteReq({ url: 'userInfo/deleteChatByIdsV1', params })
}
//  获取通知列表
export const getMessageList = ({ params }) => {
  return get({ url: 'userInfo/getMessageList', params })
}
//  通知列表已读
export const updateMessageList = ({ params }) => {
  return put({ url: 'userInfo/updateMessage', params })
}
//  获取常用语
export const getCommonLanguageList = ({ params }) => {
  return get({ url: 'userInfo/getCommonLanguageList', params })
}
//  根据ID删除常用语
export const deleteCommonLanguage = ({ params }) => {
  return deleteReq({ url: 'userInfo/deleteCommonLanguage', params })
}
//  根据ID删除常用语
export const deleteDefaultLanguageByUserId = ({ params }) => {
  return deleteReq({ url: 'userInfo/deleteDefaultLanguageByUserId', params })
}
//  保存常用语
export const insertCommonLanguage = ({ params }) => {
  return postjson({ url: 'userInfo/insertCommonLanguage', params })
}
//  修改常用语
export const updateCommonLanguage = ({ params }) => {
  return put({ url: 'userInfo/updateCommonLanguage', params })
}
//  常用语排序
export const updateSort = ({ params }) => {
  return put({ url: 'userInfo/updateSort', params })
}

// /member/talentTalk 点击立即沟通时调用
export const talentTalk = ({ params }) => {
  return post({ url: 'member/talentTalk', params })
}
// 企业的人才沟通剩余次数
export const talentTalkTime = ({ params }) => {
  return post({ url: 'company/talentTalkTime', headers: params })
}
// 岗位举报
export const reportPost = ({ params }) => {
  return post({ url: '/post/reportPost', params })
}
// 审核待解绑
export const auditMasterUnbind = ({ headers, params }) => {
  return post({ url: 'operator/auditMasterUnbind', headers, params })
}
// 校招
export const homeChannelList = ({ params }) => {
  return post({ url: '/app/channel/homeChannelList', params })
}
// 直播详情
export const homeChannelDetail = ({ params }) => {
  return post({ url: '/app/channel/homeChannelDetail', params })
}
export const watchChannel = ({ params }) => {
  return get({ url: 'app/channel/watchChannel', params })
}
// 频道状态
export const channelState = ({ params }) => {
  return get({ url: 'app/channel/channelState', params })
}
// 直播产品查看
export const productLook = ({ params }) => {
  return post({ url: '/app/channel/productLook', params })
}
// 直播岗位列表
export const livePostList = ({ params }) => {
  return post({ url: 'post/livePostListV1', params })
}
// 我要提问
export const applyUpByUserId = ({ params }) => {
  return post({ url: '/app/channel/applyUpByUserId', params })
}
// 问答（取消）收藏
export const askCollectionChannel = ({ params }) => {
  return get({ url: '/app/channel/collectionChannel', params })
}
// 岗位预览企业信息
export const postLookCompanyInfo = ({ params }) => {
  return post({ url: 'post/postLookCompanyInfo', params })
}
// 问答删除
export const delByValue = ({ params }) => {
  return deleteJson({ url: '/chatChannel/delByValue', params })
}
// 根据频道id查询聊天室id
export const searchChatGroupByChannelId = ({ params }) => {
  return get({ url: '/chatChannel/searchChatGroupByChannelId', params })
}
// 置顶
export const updateChatTopByApp = ({ params }) => {
  return put({ url: '/chatChannel/updateChatTopByApp', params })
}
// 获取自定义简历
export const getAllTemplate = ({ params }) => {
  return get({ url: 'resumeTemplate/getTemplateByApp', params })
}
// 投递简历
export const insertUserResume = ({ params }) => {
  return postjson({ url: 'resumeTemplate/insertUserResume', params })
}
// 修改简历状态
export const updateUserResume = ({ params }) => {
  return put({ url: 'resumeTemplate/updateUserResume', params })
}
// c端 报名记录
export const liveApplyUpList = ({ params }) => {
  return get({ url: '/app/channel/liveApplyUpList', params })
}
// c端 收藏记录
export const liveCollectionList = ({ params }) => {
  return get({ url: '/app/channel/liveCollectionList', params })
}
// c端 已投简历直播列表
export const getLivePostList = ({ params }) => {
  return get({ url: '/app/channel/sendLivePostList', params })
}
// C端直播相关数量
export const liveCountToC = () => {
  return get({ url: '/app/channel/liveCountToC' })
}
/* 校招 */
// B端个人中心-校招
export const companyLiveList = ({ params, headers }) => {
  return get({ url: '/app/channel/companyLiveList', params, headers })
}
// /post/publishLivePost发布直播岗位
export const publishLivePost = ({ params, headers = {} }) => {
  return postjson({ url: 'post/publishLivePost', params, headers })
}
// 企业校招职位管理
export const companyLivePostManager = ({ params }) => {
  return post({ url: 'post/companyLivePostManager', params })
}
// 频道下简历列表
export const findUserResumeByChannelId = ({ params }) => {
  return get({ url: 'resumeTemplate/findUserResumeByChannelId', params })
}
//  频道下用户的投递简历信息
export const findUserResumeByUserIdAndPostId = ({ params }) => {
  return get({ url: 'resumeTemplate/findUserResumeByUserIdAndPostId', params })
}
// resumeTemplate/cancelUpdate 取消不合适修改
export const cancelUpdate = ({ params }) => {
  return put({ url: 'resumeTemplate/cancelUpdate', params })
}
// 根据UserID 获取历史临时简历
export const findUserTemporaryResumeModel = ({ params }) => {
  return get({ url: 'resumeTemplate/findUserTemporaryResumeModel', params })
}
// 根据用户ID获取活跃度
export const findUserActiveTime = ({ params }) => {
  return get({ url: 'userInfo/findUserActiveTime', params })
}